
enum SettingTableEventEnum {
  ChangeSelection = 'changeSelection',
  ChangePageSize = 'changePageSize',
  ChangePageNum = 'changePageNum',
  SetColumns = 'setColumns',
  GetColumns = 'getColumns',
  SortChange = 'sortChanged'
}

enum SettingGPTDialogEventEnum {
  Close = 'close',
  Confirm = 'confirm',
  Input = 'input',
}

enum SettingGPTQuestionTypeEnum {
  // 全部
  All = 'all',
  // 点赞
  Like = 'like',
  // 点踩
  Dislike = 'dislike',
  // 未知
  Unknown = 'unknown',
  // 标准问题
  Standard = 'standard',
  // 日志
  Log = 'log',
}

enum SettingGPTManageTypeEnum {
  // 标准问题库
  Standard = 'standard',
  // 问题列表
  QuestionList = 'questionList',
  // 日志
  Log = 'log',
}

enum SettingGPTRobotSettingTypeEnum {
  // 专属模型
  PrivateModel = 'privateModel',
  // 公共模型
  PublicModel = 'publicModel',
}

enum SettingGPTRobotAppIntelligentQASettingTypeEnum {
  // 能力设置
  AbilitySetting = 'abilitySetting',
  // 提示词
  PromptWord = 'promptWord',
}

enum SettingGPTChatTypeEnum {
  Bao = 'bao',
}

enum SettingGPTStatusEnum {
  // 已解决
  Resolved = '1',
  // 未解决
  Unresolved = '0',
}

enum SettingGPTQuestionListFieldNameEnum {
  ChatType = 'chatType',
  Answer = 'answer',
  Question = 'question',
  CreateTime = 'createTime',
  UpdateTime = 'updateTime',
  Status = 'status',
  SupplementaryAnswer = 'supplementaryAnswer',
  QuestionUser = 'questionUser',
  Operation = 'operation',
  CreateUser = 'createUser',
  RobotApp = 'shbGptRobotApp',
  SourceDocumentList = 'sourceDocumentList',
  SimilarQuestionList = 'similarQuestionList',
  ApplyRobotList = 'applyRobotList',
  Robot = 'robot',
  Source = 'source',
}

enum SettingGPTRobotListFieldNameEnum {
  Name = 'name',
  Url = 'url',
  SourceInside = 'sourceInside',
  SourceOutsideApp = 'sourceOutsideApp',
  Model = 'model',
  Enable = 'enable',
  Switch = 'switch',
  Operation = 'operation',
  ShbGptRobotAppVOList = 'shbGptRobotAppVOList',
}

enum SettingGPTQuestionListFieldEventNameEnum {
  AddAnswer = 'addAnswer',
  AddWiki = 'addWiki',
  Delete = 'delete',
  Edit = 'edit',
}

enum SettingGPTRobotListFieldEventNameEnum {
  Edit = 'edit',
  Setting = 'setting',
  Delete = 'delete',
  Switch = 'switch',
  UrlDescriptionDialog = 'urlDescriptionDialog',
}

enum SettingGPTFeedbackTypeEnum {
  // 回答有误
  AnswerError = 'answerError',
  // 没有帮助
  NoHelp = 'noHelp',
  // 存在偏见
  Bias = 'bias',
  // 答非所问
  NonQuestion = 'nonQuestion',
}

enum SettingGPTModuleEnum {
  Wiki = 'wiki',
}

enum SettingGPTRobotInsideModuleEnum {
  Wiki = 'wiki',
  Task = 'task',
  Customer = 'customer',
  Product = 'product',
}

enum SettingGPTRobotModelModuleEnum {
  GPT3_5 = 'azure_openai_3_5_16k',
  GPT3_5_Turbo = 'azure_openai_3_5_turbo',
  GPT4_Turbo = 'azure_openai_4_turbo',
  GPT4 = 'azure_openai_4',
  GPT4_32k = 'azure_openai_4_32k',
  TongYi = 'tongyi_qwen',
  WenXin = 'wenxin',
  HunYuan = 'hunyuan',
  Other = 'other',
}

enum SettingGPTRobotPluginModuleEnum {
  TextToImage = 'textToImage',
  ExplainImage = 'explainImage',
  TreeMind = 'treeMind',
}

enum SettingGPTServiceTypeEnum {
  // 常识问答
  Common = 'commonQA',
  // 智能问答
  Intelligent = 'intelligentQA',
  // BI
  BI = 'bi',
  // 中译英
  ChineseToEnglish = 'chineseToEnglish',
  // 心理咨询
  PsychologicalCounseling = 'psychologicalCounseling',
  // 制定计划
  MakePlan = 'makePlan',
  // 摘要
  Summary = 'summary',
}

enum SettingGPTTranslateToLanguageEnum {
  // 英文
  English = 'English',
  // 中文
  Chinese = 'Chinese',
}

const SettingGPTQuestionTypeCNNmaeEnum = {
  [SettingGPTQuestionTypeEnum.Like]: '点赞问题',
  [SettingGPTQuestionTypeEnum.Dislike]: '点踩问题',
  [SettingGPTQuestionTypeEnum.Unknown]: '未知问题',
  [SettingGPTQuestionTypeEnum.All]: '全部问题'
}

const SettingGPTRobotSettingTypeCNNmaeEnum = {
  [SettingGPTRobotSettingTypeEnum.PrivateModel]: '专属模型',
  [SettingGPTRobotSettingTypeEnum.PublicModel]: '公共模型',
}

const SettingGPTRobotAppIntelligentQASettingTypeEnumCNNameEnum = {
  [SettingGPTRobotAppIntelligentQASettingTypeEnum.AbilitySetting]: '能力设置',
  [SettingGPTRobotAppIntelligentQASettingTypeEnum.PromptWord]: '提示词',
}

const SettingGPTRobotModelModuleEnumCNNameEnum = {
  [SettingGPTRobotModelModuleEnum.GPT3_5]: 'OpenAI-3.5',
  [SettingGPTRobotModelModuleEnum.GPT3_5_Turbo]: 'OpenAI-3.5-Turbo',
  [SettingGPTRobotModelModuleEnum.GPT4]: 'OpenAI-4',
  [SettingGPTRobotModelModuleEnum.GPT4_32k]: 'OpenAI-4-32k',
  [SettingGPTRobotModelModuleEnum.GPT4_Turbo]: 'OpenAI',
  [SettingGPTRobotModelModuleEnum.TongYi]: '通义大模型',
  [SettingGPTRobotModelModuleEnum.WenXin]: '文心大模型',
  [SettingGPTRobotModelModuleEnum.HunYuan]: '腾讯混元大模型',
  [SettingGPTRobotModelModuleEnum.Other]: '其他'
}

const SettingGPTRobotPluginModuleCNNameEnum = {
  [SettingGPTRobotPluginModuleEnum.TextToImage]: 'E言易图',
  [SettingGPTRobotPluginModuleEnum.ExplainImage]: '说图解画',
  [SettingGPTRobotPluginModuleEnum.TreeMind]: 'TreeMind 树图',
}

const SettingGPTChatTypeCNNmaeEnum = {
  [SettingGPTChatTypeEnum.Bao]: '小宝'
}

const SettingGPTStatusCNNmaeEnum = {
  [SettingGPTStatusEnum.Resolved]: '已解决',
  [SettingGPTStatusEnum.Unresolved]: '未解决'
}

const SettingGPTFeedbackTypeCNNmaeEnum = {
  [SettingGPTFeedbackTypeEnum.AnswerError]: '回答有误',
  [SettingGPTFeedbackTypeEnum.NoHelp]: '没有帮助',
  [SettingGPTFeedbackTypeEnum.Bias]: '存在偏见',
  [SettingGPTFeedbackTypeEnum.NonQuestion]: '答非所问',
}

const SettingGPTRobotInsideModuleCNNmaeEnum = {
  [SettingGPTRobotInsideModuleEnum.Wiki]: '知识库',
  [SettingGPTRobotInsideModuleEnum.Task]: '工单中心',
  [SettingGPTRobotInsideModuleEnum.Customer]: '客户管理',
  [SettingGPTRobotInsideModuleEnum.Product]: '产品管理',
}

const SettingGPTManageTypeCNNmaeEnum = {
  [SettingGPTManageTypeEnum.Standard]: '应用百科',
  [SettingGPTManageTypeEnum.QuestionList]: '问题列表',
  [SettingGPTManageTypeEnum.Log]: '访问日志',
}

const SettingGPTServiceTypeEnumCNNameEnum: Record<string, string> = {
  [SettingGPTServiceTypeEnum.Common]: '常识问答',
  [SettingGPTServiceTypeEnum.Intelligent]: '智能问答',
  [SettingGPTServiceTypeEnum.BI]: '小宝BI',
  [SettingGPTServiceTypeEnum.ChineseToEnglish]: '智能翻译',
  [SettingGPTServiceTypeEnum.PsychologicalCounseling]: '心理咨询',
  [SettingGPTServiceTypeEnum.MakePlan]: '制定计划',
  [SettingGPTServiceTypeEnum.Summary]: 'AI摘要',
}

const SettingGPTTranslateToLanguageEnumCNNameEnum: Record<string, any> = {
  [SettingGPTTranslateToLanguageEnum.English]: 'English',
  [SettingGPTTranslateToLanguageEnum.Chinese]: '中文',
}

const SettingGPTQuestionTypeValueEnum = {
  [SettingGPTQuestionTypeEnum.Like]: 0,
  [SettingGPTQuestionTypeEnum.Dislike]: 1,
  [SettingGPTQuestionTypeEnum.Unknown]: 2,
  [SettingGPTQuestionTypeEnum.Standard]: 3,
}

enum SettingGPTChannelEnum {
  System = 0,
  IM = 1,
  Portal = 2,
  WeChat = 3,
}

export {
  SettingTableEventEnum,
  SettingGPTQuestionTypeEnum,
  SettingGPTChatTypeEnum,
  SettingGPTStatusEnum,
  SettingGPTQuestionListFieldNameEnum,
  SettingGPTQuestionListFieldEventNameEnum,
  SettingGPTFeedbackTypeEnum,
  SettingGPTRobotSettingTypeEnum,
  SettingGPTFeedbackTypeCNNmaeEnum,
  SettingGPTStatusCNNmaeEnum,
  SettingGPTChatTypeCNNmaeEnum,
  SettingGPTQuestionTypeCNNmaeEnum,
  SettingGPTModuleEnum,
  SettingGPTDialogEventEnum,
  SettingGPTQuestionTypeValueEnum,
  SettingGPTRobotListFieldNameEnum,
  SettingGPTRobotModelModuleEnum,
  SettingGPTRobotInsideModuleEnum,
  SettingGPTRobotPluginModuleEnum,
  SettingGPTRobotListFieldEventNameEnum,
  SettingGPTRobotModelModuleEnumCNNameEnum,
  SettingGPTRobotInsideModuleCNNmaeEnum,
  SettingGPTRobotSettingTypeCNNmaeEnum,
  SettingGPTRobotPluginModuleCNNameEnum,
  SettingGPTManageTypeEnum,
  SettingGPTManageTypeCNNmaeEnum,
  SettingGPTServiceTypeEnum,
  SettingGPTServiceTypeEnumCNNameEnum,
  SettingGPTRobotAppIntelligentQASettingTypeEnum,
  SettingGPTRobotAppIntelligentQASettingTypeEnumCNNameEnum,
  SettingGPTTranslateToLanguageEnum,
  SettingGPTTranslateToLanguageEnumCNNameEnum,
  SettingGPTChannelEnum
}